const initState = {
    banners:[],
    indexContent:[],
    colleges:[],
    playCount:[],
    hots:[],
    // users:[]
}

export default (state=initState,action)=>{
    switch(action.type){

        case "change_banner":
        state.banners = action.json;
        // console.log(state.banners)
        return {...state};

        case "change_indexContent":
        state.indexContent = action.json;
        // console.log(state.indexContent)
        return {...state};

        case "change_college":
        state.colleges = action.json;
        // console.log(state.college)
        return {...state};

        case "change_play":
        state.playCount = action.json;

        return {...state};

        case "change_hot":
        state.hots = action.json;
        // console.log(state.hots)
        return {...state};

        // case "login":
        // state.users = action.json;
        // console.log(state.users)
        // return {...state};

        break;
        default:
        return state;
        break;
    }
}